﻿namespace TemplateMethod
{
    internal abstract class AbstractDisplay
    {
        public abstract void Open();
        public abstract void Print();
        public abstract void Close();

        public void Display() 
        {
            this.Open();
            for (var i = 0; i < 5; i++) 
            {
                this.Print();
            }
            this.Close();
        }
    }
}
